package com.example.laundry.repository;

import com.example.laundry.entity.LaundryItemEntity;
import com.example.laundry.entity.LaundryOrderEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LaundryItemRepository extends JpaRepository<LaundryItemEntity, Long> {
    List<LaundryItemEntity> findByOrder(LaundryOrderEntity order);
    void deleteByOrder(LaundryOrderEntity order);
}